package com.mhc.suzuki.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Component;

/**
 * 记录订单提交审核,资料修改信息事件发布
 * Created by kanon on 2017/8/23.
 */
@Component
public class SnapshotPublisher {
    @Autowired
    ApplicationContext applicationContext;

    /**
     * 提交审核时候发
     *
     * @param entityType
     * @param bizRecId
     * @param staffId
     */
    public void publish(Integer entityType, String bizRecId, Long staffId) {
        applicationContext.publishEvent(new SnapshotEvent(this, entityType, bizRecId, staffId));
    }
}
